<%@page import="Model.Bean.PhoneType"%>
<%@page import="Model.Util.PhoneTypeModel"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<fmt:setBundle var="b" basename="myapp" scope="session"/>
	<div>
    	<img />
    </div>
  	<div>
  		<table>
  			<tr>
  				<td>
    				<form action="SearchPhone" method="post" >  
    					<fmt:message key="AIndex.phoneName" bundle="${ b }"/>: 
    					<input type="text" name="txtSearch" />
    					<input type="submit" value="<fmt:message key="AIndex.btSearch" bundle="${ b }"/>">
    				</form>
    			</td>
    			<td>
    				<%= session.getAttribute("AdminID").toString() %> 
    				<form action="Logout" method="post" >
    					<input type="submit" value="<fmt:message key="AIndex.logout" bundle="${ b }"/>" />
    				</form>
    			</td>
  			</tr>
  		</table>
  	</div>
  	<div>
  		<table>
			<tr>
				<%
    				PhoneTypeModel ptm = new PhoneTypeModel();
    				ArrayList<PhoneType> pts = ptm.ShowAllType();
    				
    				for(PhoneType pt : pts) 
    				{
    					%>
    						<td>
    							<%=pt.getTypeName() %>
    						</td>
    					<%
    				}
    			%>
			</tr>
		</table>
  	</div>
</body>
</html>